#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
typedef unsigned long long ll;
string a, b;
ll n;
ll sum = 0;
int main()
{
    cin >> n;
    cin >> a;
    b = "sdu120";
    if (n < 6)
    {
        cout << 0 << endl;
        return 0;
    }
    for (int i = 0; i < n - 6; i++)
    {
        ll k = 0;
        bool flag = true;
        for (int j = i; a[i] == b[k] && k < 6; j++, k++)
        {
            if (a[j] != b[k])
            {
                flag = false;
                break;
            }
        }
        if (flag)
        {
            sum++;
            cout << i << " ";
        }
    }
    cout << sum << endl;
    return 0;
}